// src/api/dimensionApi.js
import axios from 'axios'

// 认证 API 基础路径
const DIMENSION_URL = '/api/dimensions'

// 聚合请求所有维度数据
export const getAllDimensions = () => {
  return Promise.all([
    axios.get(`${DIMENSION_URL}/categories`), // 剪纸分类
    axios.get(`${DIMENSION_URL}/themes`), // 剪纸主题
    axios.get(`${DIMENSION_URL}/techniques`), // 剪纸技法
    axios.get(`${DIMENSION_URL}/layouts`), // 剪纸布局
    axios.get(`${DIMENSION_URL}/author-styles`), // 作者派系
    axios.get(`${DIMENSION_URL}/texture-categories`), // 纹理分类
  ])
}
